function redirect(pathname, redirectHandle) {
  if (typeof redirectHandle[pathname] === "function") {
    return redirectHandle[pathname]();
  } else {
    console.log("Bad request for " + pathname + "page.");
    return "400 Not found";
  }
}
exports.redirect = redirect;
